/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package ccore.constraint;

import ccore.common.CElement;
import ccore.expression.CIntVar;
import org.eclipse.emf.common.util.EList;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>CConstraint</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link ccore.constraint.CConstraint#getComment <em>Comment</em>}</li>
 *   <li>{@link ccore.constraint.CConstraint#getConstraint <em>Constraint</em>}</li>
 *   <li>{@link ccore.constraint.CConstraint#getVariables <em>Variables</em>}</li>
 * </ul>
 * </p>
 *
 * @see ccore.constraint.ConstraintPackage#getCConstraint()
 * @model
 * @generated
 */
public interface CConstraint extends CElement {
	/**
	 * Returns the value of the '<em><b>Comment</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Comment</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Comment</em>' attribute.
	 * @see #setComment(String)
	 * @see ccore.constraint.ConstraintPackage#getCConstraint_Comment()
	 * @model required="true"
	 * @generated
	 */
	String getComment();

	/**
	 * Sets the value of the '{@link ccore.constraint.CConstraint#getComment <em>Comment</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Comment</em>' attribute.
	 * @see #getComment()
	 * @generated
	 */
	void setComment(String value);

	/**
	 * Returns the value of the '<em><b>Constraint</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Constraint</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Constraint</em>' containment reference.
	 * @see #setConstraint(CConstraintExpr)
	 * @see ccore.constraint.ConstraintPackage#getCConstraint_Constraint()
	 * @model containment="true" required="true"
	 * @generated
	 */
	CConstraintExpr getConstraint();

	/**
	 * Sets the value of the '{@link ccore.constraint.CConstraint#getConstraint <em>Constraint</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Constraint</em>' containment reference.
	 * @see #getConstraint()
	 * @generated
	 */
	void setConstraint(CConstraintExpr value);

	/**
	 * Returns the value of the '<em><b>Variables</b></em>' reference list.
	 * The list contents are of type {@link ccore.expression.CIntVar}.
	 * It is bidirectional and its opposite is '{@link ccore.expression.CIntVar#getConstraints <em>Constraints</em>}'.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Variables</em>' reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Variables</em>' reference list.
	 * @see ccore.constraint.ConstraintPackage#getCConstraint_Variables()
	 * @see ccore.expression.CIntVar#getConstraints
	 * @model opposite="constraints"
	 * @generated
	 */
	EList<CIntVar> getVariables();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	void initVariables();

} // CConstraint
